﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MVCTutorial.GUI.Web.ViewModels.Tests
{
	public class Sgnorfey
	{
		[Editable(false)]
		public int Id { get; set; }

		[Display(Name = "Nome")]
		[Required(ErrorMessage = "Preencha este campo")]
		public string Name { get; set; }

		[Required(ErrorMessage = "Apenas números. De 3 a 5 dígitos.")]
		[RegularExpression("[0-9]{3,5}", ErrorMessage = "Errado!")]
		[Display(Name = "Número")]
		public string Number { get; set; }

		[Display(Name = "Visível")]
		public bool IsVIsible { get; set; }

		public IList<Jeorfy> Jeorfies { get; set; }

		[Display(Name = "Jeorfies")]
		public int[] JeorfyIds { get; set; }
	}
}